<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../metadatos.jsp" flush = "True" />
<html>
    <head>
        <title><c:out value="${principalTPV.tituloVistaCatalogo}"/></title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
                <img src="./resources/Logo.PNG" />
            </header><!-- .header-->
            <main class="content">
                <form class="formee" method="post" action="<c:out value="${principalTPV.accionFormulario}"/>">
                    <fieldset>
                        <legend><c:out value="${principalTPV.tituloVistaCatalogo}"/></legend>
                        <c:if test="${principalTPV.nErrores>0}">
                            <div class="formee-msg-error">
                                <h3>Incidencias:</h3>
                                <ul>
                                    <c:forEach items="${principalTPV.errores}" var="e">
                                        <li><c:out value="${e}"/></li>
                                        </c:forEach>
                                </ul>
                            </div> 
                        </c:if>
                        <div class="grid-12-12">
                            <label>Nombre Familia<em class="formee-req">*</em></label>
                            <input type="text" value="<c:out value="${principalTPV.catalogoProductos.nombre}"/>" name="nombreFamilia" onKeyup="this.value = txtalfanum(this.value)" />
                        </div>
                        <div class="grid-12-12">
                            <label>Descripcion Familia<em class="formee-req">*</em></label>
                            <input type="text" value="<c:out value="${principalTPV.catalogoProductos.descripcion}"/>" name="descripcionFamilia" onKeyup="this.value = txtalfanum(this.value)" />
                        </div>
                        <div class="grid-12-12">
                            <label>Observaciones </label>
                            <textarea rows="" cols="" name="observacionFamilia" onKeyup="this.value = txtalfanum(this.value)" ><c:out value="${principalTPV.catalogoProductos.observaciones}"/></textarea>
                        </div>
                        <div class="grid-2-12">
                            <input type="submit" value="guardar"/>
                        </div>
                        <div class="grid-2-12">
                            <input type="button" value="cancelar" onclick="location.href = './TarryTPV?action=adminCatalogo'"/>
                        </div>
                    </fieldset>
                </form>
            </main>
        </div>
    </body>
</html>
<jsp:include page = "../pie.jsp" flush = "True" />